Conditii pentru aceasta varianta:
– server plesk
– nginx ca si proxy pentru apache
– php-fpm binenteles
Cream fisierul /var/www/vhosts/system/numedomeniu/conf/php.ini cu continutul
[php-fpm-pool-settings]
pm.status_path = /status
ping.path = /ping
In plesk la Domains > numedomeniu > Apache & nginx Settings introducem:
location ~ ^/(status|ping)$ {
fastcgi_split_path_info ^((?U).+\\.php)(/?.+)$;
fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_pass "unix:///var/www/vhosts/system/numedomeniu/php-fpm.sock";
include /etc/nginx/fastcgi.conf;
}
Actualizam setarile php:
/usr/local/psa/bin/php_settings -u
Putem apela acum in browser:
http://numedomeniu/status
respectiv
http://numedomeniu/status?full